package cn.cqie.attendance.student.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: xiehaodong
 * @Date: 2021/6/20 - 17:46
 * @Description: cn.cqie.attendance.student.domian
 * @version: 1.0
 */
@Accessors(chain = true)
@ApiModel(value="course", description="")
@Alias("course")
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Course implements Serializable {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 课程名 */
    @ApiModelProperty(value = "课程名")
    private String courseName;

    /** 课程日期 */
    @ApiModelProperty(value = "课程日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date courseTime;

    /** 责任老师 */
    @ApiModelProperty(value = "责任老师")
    private Long responseTeacher;

    /** 签到时间 */
    @ApiModelProperty(value = "签到时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date signinTime;

    /** 签退时间 */
    @ApiModelProperty(value = "签退时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date signoutTime;

    /** 上课教室 */
    @ApiModelProperty(value = "上课教室")
    private String classroom;

    /** 课程备注 */
    @ApiModelProperty(value = "课程备注")
    private String remark;

    /** 课程创建时间 */
    @ApiModelProperty(value = "课程创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 责任老师 */
    @ApiModelProperty(value = "责任老师姓名")
    private String responseteacherName;

    private TrainteacherCourse trainteacherCourse;

}
